﻿@model FormulaRunning.Models.Formula

@{
    ViewBag.Title = "Edit Fomula";
}
<script>
    // 用户登录后显示tag的输入框
</script>
<h2>Create</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Edit Fomula</legend>
        <div id="content">
            <div class="editor-label">
                @Html.LabelFor(model => model.Title)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Title)
                @Html.ValidationMessageFor(model => model.Title)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Description)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Description)
                @Html.ValidationMessageFor(model => model.Description)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.FormulaString)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.FormulaString)
                @Html.ValidationMessageFor(model => model.FormulaString)
            </div>
            <div id="tags">
                @Html.EditorFor(model => model.TagString)
                @Html.ValidationMessageFor(model => model.TagString)
            </div>
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
